﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace OneStop.UI
{
	public partial class PrefsUserControl : UserControl
	{
        public event EventHandler DefaultsSaved;

        protected void OnDefaultsSaved()
        {
            if (this.DefaultsSaved != null)
            {
                this.DefaultsSaved(this, EventArgs.Empty);
            }
        }

		public PrefsUserControl()
		{
			// Required to initialize variables
			InitializeComponent();
		}

        private void SaveAsDefault_Click(object sender, RoutedEventArgs e)
        {
            OnDefaultsSaved();
        }
	}
}